<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:choose>
  <c:when test="${not empty finishedCourseRounds}">
    <div class="content-block-title course-type gray">
      <p>结营课程</p>
    </div>
    <div class="list-block media-list no-margin" style="margin-top: 0px;">
      <ul>
        <c:forEach var="courseRound" items="${finishedCourseRounds}">
          <li class="course">
            <a href="${ctx.host}/profile/courses/${courseRound.id}" class="item-link item-content">
              <div class="item-media"><img src="${cloud.prod}/${courseRound.course.cover}" style='width: 4rem;'></div>
              <div class="item-inner">
                <div class="item-title-row">
                  <div class="item-title">${courseRound.course.name}</div>
                </div>
                <div class="item-subtitle" style="magin: .3rem 0;">${courseRound.site.name}</div>
                <div class="item-text" style="height: 1.5rem;">
                  课程已完成，共上<span>&nbsp;${courseRound.finished}&nbsp;</span>课时。
                </div>
              </div>
            </a>
          </li>
        </c:forEach>
      </ul>
    </div>
  </c:when>
  <c:otherwise>
  </c:otherwise>
</c:choose>